/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: adol book
 * Date: 2022-05-03
 * Time: 13:54
 */
class A{
    static{
        System.out.println("父类静态代码块");
    }
    {
        System.out.println("父类实例代码块");
    }
    public A(){
        System.out.println("父类构造方法");
    }
}
class B extends A{
    static{
        System.out.println("子类静态代码块");
    }
    {
        System.out.println("子类实例代码块");
    }
     public B(){
         System.out.println("子类构造方法");
     }
}
public class demo1 {
    public static void main(String[] args) {
        B b = new B();
        System.out.println("============");
        B c = new B();

    }
}
